#include "widget.h"
#include "ui_widget.h"
#include"QPushButton"
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QPushButton* btn=new QPushButton(this);
    btn->setText("开关");
    connect(btn,&QPushButton::clicked,this,&QWidget::close);
    btn->setEnabled(false);
}

Widget::~Widget()
{
    delete ui;
}

